package main

func readChan(genChan <- chan string) {
	<- genChan
	genChan <- "c"

}

func writeChan(genChan chan <- string) {
	genChan <- "ccc"

	<- genChan

}

func main() {

	// 传参只读
	generalChan := make(chan string, 2)
	generalChan <- "a"
	readChan(generalChan)

	// 传参只写
	writeChan(generalChan)



}
